---
layout: example
category: example
title: Disable scroll zoom
description: Prevents scroll from zooming a map.
tags: 
  - change-option
---
<div id='map'></div>
<script>
var map = new mapboxgl.Map({
    container: 'map', // container id
    style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location
    center: [-122.65, 45.52], // starting position
    zoom: 9 // starting zoom
});

// disable map zoom when using scroll
map.scrollZoom.disable();
</script>
